package com.slz3.business.module.systemManagement.sysRoleMenu.steward;

import com.slz3.business.module.systemManagement.sysRoleMenu.domain.SysRoleMenu;
import com.slz3.business.module.systemManagement.sysRoleMenu.domain.SysRoleMenuCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

import javax.annotation.Resource;

@Component
public class SysRoleMenuResponse extends SysRoleMenuResController {

    public  Mono<ServerResponse> add(ServerRequest req) {
        return req.bodyToMono(SysRoleMenu.class).flatMap(sysRoleMenu ->
                super.add(req, sysRoleMenu)
        );
    }

    public  Mono<ServerResponse> info(ServerRequest req) {
        return super.info(req);
    }

}
